package com.wrench.elevator.tida.exception;

/**
 * All rights Reserved, Designed By Hangzhou Wrench
 * 
 * @Title WrenchException.java
 * @Package com.wrench.elevator.exception
 * @Description 自定义异常
 * @author yangchenfeng
 * @date 2017年10月2日 下午3:15:26
 * @version V1.0
 * @notice 本内容仅限于杭州扳手网络科技有限科技内部传阅，禁止外泄以及用于其他的商业目
 */
public class WrenchException extends Exception
{
    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;
    
    /**
     * @Fields resultCode :结果码
     */
    private String resultCode;
    
    /**
     * @Fields resultMessage :结果信息
     */
    private String resultMessage;
    
    public String getResultCode()
    {
        return resultCode;
    }
    
    public void setResultCode(String resultCode)
    {
        this.resultCode = resultCode;
    }
    
    public String getResultMessage()
    {
        return resultMessage;
    }
    
    public void setResultMessage(String resultMessage)
    {
        this.resultMessage = resultMessage;
    }
    
    public WrenchException(String resultCode, String resultMessage)
    {
        super();
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }
    
    public WrenchException()
    {
        super();
        // TODO Auto-generated constructor stub
    }
    
    public WrenchException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
    {
        super(message, cause, enableSuppression, writableStackTrace);
        // TODO Auto-generated constructor stub
    }
    
    public WrenchException(String message, Throwable cause)
    {
        super(message, cause);
        // TODO Auto-generated constructor stub
    }
    
    public WrenchException(String message)
    {
        super(message);
        // TODO Auto-generated constructor stub
    }
    
    public WrenchException(Throwable cause)
    {
        super(cause);
        // TODO Auto-generated constructor stub
    }
    
    @Override
    public String toString()
    {
        return "WrenchException [resultCode=" + resultCode + ", resultMessage=" + resultMessage + "]";
    }
    
}
